import Vue from 'vue';
import App from './App.vue';
import { router } from './router';
import VueAwesomeSwiper from 'vue-awesome-swiper'; // 解决轮播图在ios9 以下不能滑动
import 'swiper/css/swiper.min.css';
import { Button, ActionSheet, Dialog, Toast, Calendar, Loading, Popup, Uploader, Overlay, List } from 'vant';
import 'vant/lib/index.css';
import http from './utils/http';
// import "./mock/index.js";

Vue.use(Button);
Vue.use(ActionSheet);
Vue.use(Dialog);
Vue.use(Toast);
Vue.use(Calendar);
Vue.use(Loading);
Vue.use(Popup);
Vue.use(Uploader);
Vue.use(Overlay);
Vue.use(List);

Vue.use(VueAwesomeSwiper);

Vue.prototype.$http = http;
Vue.config.productionTip = false;

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
